package com.songaw.cangku.pojo.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class Colors implements Serializable {
    private String uuid;
    @ApiModelProperty(value = "颜色名称")
    private String colorName;
    @ApiModelProperty(value = "颜色数量")
    private Integer colorNum;
    @ApiModelProperty(value = "颜色已交数量")
    private Integer colorSubmit;
    @ApiModelProperty(value = "颜色已领数量")
    private Integer colorClaimed;
    @ApiModelProperty(value = "款号")
    private String modelNumber;
    @ApiModelProperty(value = "尺码")
    private String sizeName;
    @ApiModelProperty(value = "尺码数量")
    private Integer sizeNum;
    @ApiModelProperty(value = "尺码已领数量")
    private Integer sizeClaimed;
    @ApiModelProperty(value = "尺码已交数量")
    private Integer sizeSubmit;

    private static final long serialVersionUID = 1L;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorName(String colorName) {
        this.colorName = colorName == null ? null : colorName.trim();
    }

    public Integer getColorNum() {
        return colorNum;
    }

    public void setColorNum(Integer colorNum) {
        this.colorNum = colorNum;
    }

    public Integer getColorSubmit() {
        return colorSubmit;
    }

    public void setColorSubmit(Integer colorSubmit) {
        this.colorSubmit = colorSubmit;
    }

    public Integer getColorClaimed() {
        return colorClaimed;
    }

    public void setColorClaimed(Integer colorClaimed) {
        this.colorClaimed = colorClaimed;
    }

    public String getModelNumber() {
        return modelNumber;
    }

    public void setModelNumber(String modelNumber) {
        this.modelNumber = modelNumber == null ? null : modelNumber.trim();
    }

    public String getSizeName() {
        return sizeName;
    }

    public void setSizeName(String sizeName) {
        this.sizeName = sizeName == null ? null : sizeName.trim();
    }

    public Integer getSizeNum() {
        return sizeNum;
    }

    public void setSizeNum(Integer sizeNum) {
        this.sizeNum = sizeNum;
    }

    public Integer getSizeClaimed() {
        return sizeClaimed;
    }

    public void setSizeClaimed(Integer sizeClaimed) {
        this.sizeClaimed = sizeClaimed;
    }

    public Integer getSizeSubmit() {
        return sizeSubmit;
    }

    public void setSizeSubmit(Integer sizeSubmit) {
        this.sizeSubmit = sizeSubmit;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Colors other = (Colors) that;
        return (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))
            && (this.getColorName() == null ? other.getColorName() == null : this.getColorName().equals(other.getColorName()))
            && (this.getColorNum() == null ? other.getColorNum() == null : this.getColorNum().equals(other.getColorNum()))
            && (this.getColorSubmit() == null ? other.getColorSubmit() == null : this.getColorSubmit().equals(other.getColorSubmit()))
            && (this.getColorClaimed() == null ? other.getColorClaimed() == null : this.getColorClaimed().equals(other.getColorClaimed()))
            && (this.getModelNumber() == null ? other.getModelNumber() == null : this.getModelNumber().equals(other.getModelNumber()))
            && (this.getSizeName() == null ? other.getSizeName() == null : this.getSizeName().equals(other.getSizeName()))
            && (this.getSizeNum() == null ? other.getSizeNum() == null : this.getSizeNum().equals(other.getSizeNum()))
            && (this.getSizeClaimed() == null ? other.getSizeClaimed() == null : this.getSizeClaimed().equals(other.getSizeClaimed()))
            && (this.getSizeSubmit() == null ? other.getSizeSubmit() == null : this.getSizeSubmit().equals(other.getSizeSubmit()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUuid() == null) ? 0 : getUuid().hashCode());
        result = prime * result + ((getColorName() == null) ? 0 : getColorName().hashCode());
        result = prime * result + ((getColorNum() == null) ? 0 : getColorNum().hashCode());
        result = prime * result + ((getColorSubmit() == null) ? 0 : getColorSubmit().hashCode());
        result = prime * result + ((getColorClaimed() == null) ? 0 : getColorClaimed().hashCode());
        result = prime * result + ((getModelNumber() == null) ? 0 : getModelNumber().hashCode());
        result = prime * result + ((getSizeName() == null) ? 0 : getSizeName().hashCode());
        result = prime * result + ((getSizeNum() == null) ? 0 : getSizeNum().hashCode());
        result = prime * result + ((getSizeClaimed() == null) ? 0 : getSizeClaimed().hashCode());
        result = prime * result + ((getSizeSubmit() == null) ? 0 : getSizeSubmit().hashCode());
        return result;
    }
}